<template>
  <el-config-provider :locale="language">
    <router-view></router-view>
  </el-config-provider>
</template>

<script setup lang="ts">
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import en from 'element-plus/dist/locale/en.mjs'
import { computed } from 'vue'
import { useLanguageStore } from '@/store/language'
const store = useLanguageStore()

const language = computed(() => (store.language === 'zhCn' ? zhCn : en))
</script>

<style>
.el-pagination {
  height: 50px;
  justify-content: center;
}
</style>
